package com.cll.pmis.common.utils;

import com.cll.pmis.common.security.SysUser;

import javax.servlet.http.HttpServletRequest;

/**
 * @author chenliangliang
 * @date 2018/6/24
 */
public class SecurityUtil {

    public static SysUser getUser(HttpServletRequest request) {
        Object user = request.getSession().getAttribute("user");
        return user == null ? null : (SysUser) user;
    }
}
